/*************************************************************************
	> File Name: P10955.cpp
	> Author: yufangze
	> Mail: 2224590123@qq.com
	> Created Time: 2025-03-17 14:43:36
 ************************************************************************/

#include <iostream>
#include <set>
#include <map>
#include <vector>
#include <algorithm>
using namespace std;

int main() {
    vector<uint32_t> dp(4005);
    dp[0] = 1;
    uint32_t n, mod = 2147483648;
    cin >> n;
    for (uint32_t i = 1; i <= n; i++) {
        for (uint32_t j = i; j <= n; j++) {
            dp[j] = (dp[j] + dp[j - i]);
            dp[i] %= mod;
        }
    }
    cout << dp[n] - 1 << endl;
    return 0;
}
